﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GestorDeFlotasDesktop.Utils
{
    class LoginSingleton
    {
        private static LoginSingleton thisInstance = null;
        private Dao.UsuarioDto usuario = null;
        private bool authenticated = false;

        public static LoginSingleton Instance
        {
            get
            {
                if (thisInstance == null)
                {
                    thisInstance = new LoginSingleton();
                }
                return thisInstance;
            }
        }
        public Dao.UsuarioDto Usuario
        {
            get { return usuario; }
            set { usuario = value; }
        }
        public bool Authenticated 
        {
            get { return authenticated; }
            set { authenticated = value; }
        }
        private LoginSingleton() { }
    }
}
